/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.webhomesites.configuracao.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author Webhome
 * 
 */
@Entity
@Table(name="CFGUSUARIO")
public class UsuarioModel {
    
    @Id
    @SequenceGenerator(name="CODUSUARIO", sequenceName="CODUSUARIO", allocationSize=1)
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="CODUSUARIO")   
    @Column(name="CODUSUARIO", nullable=false)
    private int codigoUsuario;
    
    @Column(name="NOMEUSUARIO")
    private String nome;
    
    @Column(name="LOGINUSUARIO")
    private String login;
    
    @Column(name="SENHAUSUARIO")
    private String senha;

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }

    public int getCodigo() {
        return codigoUsuario;
    }

    public void setCodigo(int codigo) {
        this.codigoUsuario = codigo;
    }  

   
    
}
